// 封装showToast组件
const toast = (title) => {
  wx.showToast({
    title,
    mask: true,
    icon: 'none'
  })
}
wx.toast = toast

wx.random = function (min, max) {
  min: min > max ? max : min
  max: min > max ? min : max
  return Math.floor(Math.random() * (max - min + 1) + min)
}